import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import home from '@/components/AdminHome'
import center from '@/components/commons/Center'
import Top from '@/components/commons/Top'
import Left from '@/components/commons/Left'
import EditMenu from '@/components/webpage/EditMenu'
import Table_test from './../components/webpage/Table_test.vue'

Vue.use(Router)

export default new Router({
  /* routes: [
    { path: '/', home: 'admin', component: home},
    { path: '/Hello', home: 'Hello', component: Hello},
    { path: '/center', home: 'center', component: center}
  ] */
  routes: [
        {
            path: '/',
            name: 'Hello',
            component: Hello,
            children: [
                //adminhome子路由
                // { path: "/", name: "Banner", component: Banner },
                { path: '/Hello', home: 'Hello', component: Hello},
                { path: '/center', home: 'center', component: center},
                { path: '/EditMenu', home: 'EditMenu', component: EditMenu},
                { path: '/Table_test', home: 'Table_test', component: Table_test},
            ]
        },
        /* {
            path: '/Top',
            name: 'Top',
            component: Top,
            children: [
                { path: '/Left', home: 'Left', component: Left}
            ]
        } */
    ]
})
